<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-client-edit" th:object="${client}">
            <input name="imei" th:field="*{imei}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">终端名称：</label>
                <div class="col-sm-8">
                    <input name="clientname" th:field="*{clientname}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">终端类型：</label>
                <div class="col-sm-8">
                    <input name="clientinfo" th:field="*{clientinfo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="creatdate" th:value="${#dates.format(client.creatdate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最后通信时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="finallogindate" th:value="${#dates.format(client.finallogindate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="note" th:field="*{note}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池1电压：</label>
                <div class="col-sm-8">
                    <input name="pow1" th:field="*{pow1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电池组电压：</label>
                <div class="col-sm-8">
                    <input name="grouppow" th:field="*{grouppow}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">充电电流：</label>
                <div class="col-sm-8">
                    <input name="chargeCurrent" th:field="*{chargeCurrent}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">负载电流：</label>
                <div class="col-sm-8">
                    <input name="loadCurrent" th:field="*{loadCurrent}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">输出电压：</label>
                <div class="col-sm-8">
                    <input name="outputVoltage" th:field="*{outputVoltage}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外部电源电压：</label>
                <div class="col-sm-8">
                    <input name="extendpow" th:field="*{extendpow}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">太阳能电压：</label>
                <div class="col-sm-8">
                    <input name="solarpow" th:field="*{solarpow}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工作温度：</label>
                <div class="col-sm-8">
                    <input name="operatingTemp" th:field="*{operatingTemp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工作温度：</label>
                <div class="col-sm-8">
                    <input name="charge" th:field="*{charge}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工作温度：</label>
                <div class="col-sm-8">
                    <input name="work" th:field="*{work}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工作温度：</label>
                <div class="col-sm-8">
                    <input name="ip" th:field="*{ip}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">环境温度：</label>
                <div class="col-sm-8">
                    <input name="ambientTemp" th:field="*{ambientTemp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">环境湿度：</label>
                <div class="col-sm-8">
                    <input name="ambientHum" th:field="*{ambientHum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">环境照度：</label>
                <div class="col-sm-8">
                    <input name="ambientLight" th:field="*{ambientLight}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">土壤温度：</label>
                <div class="col-sm-8">
                    <input name="soilTemp" th:field="*{soilTemp}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">土壤湿度：</label>
                <div class="col-sm-8">
                    <input name="soilHum" th:field="*{soilHum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">大气压力：</label>
                <div class="col-sm-8">
                    <input name="atmoPressure" th:field="*{atmoPressure}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">风速：</label>
                <div class="col-sm-8">
                    <input name="windSpeed" th:field="*{windSpeed}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">风向：</label>
                <div class="col-sm-8">
                    <input name="windDirection" th:field="*{windDirection}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">雨雪：</label>
                <div class="col-sm-8">
                    <input name="snowAndRain" th:field="*{snowAndRain}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">pm 2.5：</label>
                <div class="col-sm-8">
                    <input name="particulateMatter" th:field="*{particulateMatter}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">一氧化碳：</label>
                <div class="col-sm-8">
                    <input name="carbonicOxide" th:field="*{carbonicOxide}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">二氧化碳：</label>
                <div class="col-sm-8">
                    <input name="carbonDioxide" th:field="*{carbonDioxide}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">二氧化硫：</label>
                <div class="col-sm-8">
                    <input name="sulfurDioxide" th:field="*{sulfurDioxide}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "system/client";
        $("#form-client-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-client-edit').serialize());
            }
        }

        $("input[name='creatdate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='finallogindate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>